package cn.ickck.law_paper_final.mapper;

import cn.ickck.law_paper_final.model.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: ck
 * @Description:
 * @Date: Create in 15:03 2020/10/17
 */
public interface UserMapper {
    @Select("select * from user where username = #{username} and password = #{password}")
    User findByNameAndPwd(String username, String password);
    @Insert("insert into user(username,password) values(#{username},#{password})")
    Integer insert(User user);
}
